home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 7
/
Apprentice-Release7.iso
/
Environments
/
Open Prolog 1.0.3d33
/
Samples
/
show time
< prev
next >
Wrap
Text File
|
1994-04-18
|
600b
|
31 lines
/* This totally useless procedure ties up Open Prolog just showing the time */
show_time(A) :-
'system$seconds'(B),
(
(
B==A
->
true
)
;
'system$time'(B,C),
'system$owner$name'(E),
(
(
E==''
->
F='It''s '
)
;
F=' it''s '
),
'system$set$display'(message,left,E,' it''s ',C,'')
),
show_time(B).
/* Try this:
'system$push$display'(message,left,'','','',''),show_time(0),'system$pop$display'(message).
*/